bd4fb8845a63891c3f6563332c60c33add13e1cc,opennms-snmp/opennms-snmp-test/src/test/java/org/opennms/netmgt/snmp/mock/TestAgent.java,TestAgent,generateException,#SnmpObjId#,75
Before Change
if (m_agentData.isEmpty())
throw new AgentNoSuchObjectException();
SnmpObjId firstOid = (SnmpObjId)m_agentData.firstKey();
SnmpObjId lastOid = (SnmpObjId)m_agentData.lastKey();
if (id.compareTo(firstOid) < 0 || id.compareTo(lastOid) > 0)
throw new AgentNoSuchObjectException();
After Change
throw new AgentNoSuchObjectException();
}
SnmpObjId firstOid = m_agentData.firstKey();
SnmpObjId lastOid = m_agentData.lastKey();
if (id.compareTo(firstOid) < 0 || id.compareTo(lastOid) > 0)
throw new AgentNoSuchObjectException();